package com.enzoism.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * Created with IntelliJ IDEA.
 * User: enzoism
 * Date: 2019/9/4- 2:14
 */
@Controller
@RequestMapping("/admin")
public class AdminController {

    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String index(HttpServletRequest request) {
        request.setAttribute("name", "login");
        return "index";
    }
}
